package com.ruoyi.mapper;

import com.ruoyi.domain.BorrowingAmount;

import java.util.List;

/**
 * 借款Mapper接口
 * 
 * @author ruoyi
 * @date 2020-07-16
 */
public interface BorrowingAmountMapper 
{
    /**
     * 查询借款
     * 
     * @param bId 借款ID
     * @return 借款
     */
    public BorrowingAmount selectBorrowingAmountById(Long bId);

    /**
     * 查询借款列表
     * 
     * @param borrowingAmount 借款
     * @return 借款集合
     */
    public List<BorrowingAmount> selectBorrowingAmountList(BorrowingAmount borrowingAmount);


    /**
     * 财务查询借款列表
     *
     * @param borrowingAmount 借款
     * @return 借款集合
     */
    public List<BorrowingAmount> selectBorrowingAmountLists(BorrowingAmount borrowingAmount);

    /**
     * 新增借款
     * 
     * @param borrowingAmount 借款
     * @return 结果
     */
    public int insertBorrowingAmount(BorrowingAmount borrowingAmount);

    /**
     * 修改借款
     * 
     * @param borrowingAmount 借款
     * @return 结果
     */
    public int updateBorrowingAmount(BorrowingAmount borrowingAmount);

    /**
     * 删除借款
     * 
     * @param bId 借款ID
     * @return 结果
     */
    public int deleteBorrowingAmountById(Long bId);

    /**
     * 批量删除借款
     * 
     * @param bIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteBorrowingAmountByIds(String[] bIds);

    /**
     * 提交申请
     */
    public int submitExaStatus(Long bId);

    /**
     * 撤销申请
     */
    public int revoExaStatus(Long bId);

    /**
     * 总经理通过申请
     */
    public int conExaStatus(Long bId);

    /**
     * 结束
     */
    public int overExaStatus(Long bId);

    /**
     * 驳回
     */
    public int editparoStatus(Long bId);

    /**
     * 财务处理
     */
    public int consExaStatus(Long bId);

    /**
     * 按姓名查询借款金额
     */
    public List<BorrowingAmount> selectPriceByLoginName(String bApplicant);
}
